package com.shxzz.easy12306.services.ticket.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shxzz.easy12306.framework.starter.database.base.BaseDO;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 列车站点表
 * @TableName t_train_station
 */
@TableName(value ="t_train_station")
@Data
public class TrainStationDO extends BaseDO implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 车次ID
     */
    private Long trainId;

    /**
     * 车站ID
     */
    private Long stationId;

    /**
     * 站点顺序
     */
    private String sequence;

    /**
     * 出发站点
     */
    private String departure;

    /**
     * 到达站点
     */
    private String arrival;

    /**
     * 起始城市
     */
    private String startRegion;

    /**
     * 终点城市
     */
    private String endRegion;

    /**
     * 到站时间
     */
    private LocalDateTime arrivalTime;

    /**
     * 出站时间
     */
    private LocalDateTime departureTime;

    /**
     * 停留时间，单位分
     */
    private Integer stopoverTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}